<?php

return array (
		'ip'=>array('class'=>'application.extensions.17monipdb.IP'),
		'top'=>array('class'=>'application.components.Top'),
		'mail'=>array(
				'class'=>'application.extensions.mailer.EMailer',
		),
		'session' => array (
				'autoStart' => true,
		),
		'sms'=>array(
				'class'=>'application.components.Sms'
				),
		'mp3file'=>array(
				'class'=>'application.components.Mp3file'
		),
		'user'=>array(
				'class' => 'application.modules.user.components.YumWebUser',
				'allowAutoLogin'=>true,
				'loginUrl' => array('//user/user/login'),
		),
		// uncomment the following to enable URLs in path-format
		'urlManager' => array (
				'urlFormat' => 'path',
				'showScriptName' => false,
				
				'rules' => require 'routes.php' 
		),
		// uncomment the following to use a MySQL database
		'db' => array (
				'connectionString' => 'mysql:host=localhost;dbname=codebase',
				'emulatePrepare' => true,
				'username' => 'root',
				'password' => '',
				'charset' => 'utf8' 
		),
		/*'errorHandler' => array (
				'errorAction' => 'Top/error' 
		),*/
		'log' => array (
				'class' => 'CLogRouter',
				'routes' => array (
						array (
								'class' => 'CFileLogRoute',
								'levels' => 'error, warning' 
						) 
				) 
		),
		 'bootstrap'=>array(
            'class'=>'bootstrap.components.Bootstrap',
        ),
		'cache' => array('class' => 'system.caching.CDummyCache'),
		'qiniu'=> array('class' => 'ext.qiniu.Qiniu'),
		'file'=>array(
				'class'=>'application.extensions.upyun.FileUpload',
				'bucketname'=>'top12345',
				'username'=>'zeroisstart',
				'password'=>'nohacker',
				'opts'=>array(
						'X_GMKERL_TYPE' => 'square', // type for the thumb
						'X_GMKERL_VALUE'=> 100, // size for the thumb
						'X_GMKERL_QUALITY' => 95, // quality for the thumb
						'X_GMKERL_UNSHARP' => True //whether to Sharpening
		)),
	
);